home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / help.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  14.2 KB  |  656 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ Help\\
  5.  
  6.   menuDef {
  7.         name "help_menu"
  8.         visible 0
  9.         fullscreen 1
  10.         rect 0 0 640 480
  11.         background "menuback_a"
  12.         focusColor 1 .75 0 1
  13.         style 1
  14.         border 1
  15.     onEsc { close help_menu ; close powerup_menu ; close ordersHelp_menu ; open main }
  16.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; 
  17.     playlooped "music/fla_mp03.wav" ;
  18.     fadeout fadebox ; 
  19.      hide grphelptext ; 
  20.     show grpbttn ; 
  21.     show ctf }
  22.  
  23.  
  24.  
  25. // BAR    //
  26.  
  27.  
  28. itemDef {
  29.           name gametypebar
  30.           style 2
  31.           rect 0 16 640 40 
  32.           textscale 0.4
  33.           textalign 0                // center
  34.           textalignx 60               // x alignment point for text
  35.                                     // use it to offset left/right text from the edge 
  36.                                     // or to center the text on a different point
  37.           textaligny 21        
  38.           style 2
  39.           border 4
  40.           bordercolor 0.5 0.5 0.5 0.5
  41.           bordersize 2
  42.           backcolor 0 0 .75 0.5
  43.           visible 1 
  44.     mouseEnter { setcolor backcolor .75 0 0 .5 ; fadein message_help }
  45.           mouseExit { setcolor backcolor 0 0 .75 .5 ; fadeout message_help }
  46.           decoration 
  47.     }
  48.  
  49.     
  50. itemDef {
  51.           name bar
  52.           style 0    
  53.     text "Gametypes"
  54.     type 1
  55.           rect 0 16 213 40
  56.     textstyle 6
  57.           textalign 1        
  58.           textalignx 106
  59.     textaligny 31        
  60.     textscale .35     
  61.           forecolor 1 1 1 1
  62.           border 0
  63.           bordercolor 0 0 0 0
  64.           visible 1
  65.     action { play "sound/misc/kcaction.wav" ; 
  66.     hide grphelptext ; 
  67.     show grpbttn ;
  68.     close powerup_menu ;
  69.     close ordersHelp_menu ;  
  70.     show ctf  } 
  71.     }
  72. itemDef {
  73.           name bar
  74.           style 0    
  75.     type 1
  76.     text "Power-Ups"
  77.           rect 213 16 213 40
  78.     textstyle 6
  79.           textalign 1        
  80.           textalignx 106
  81.     textaligny 31        
  82.     textscale .35     
  83.           forecolor 1 1 1 1
  84.           border 0
  85.           bordercolor 0 0 0 0
  86.           visible 1 
  87.     action { play "sound/misc/kcaction.wav" ; 
  88.     hide grphelptext ; 
  89.     hide grpbttn ;
  90.     close powerup_menu ; 
  91.     close ordersHelp_menu ; 
  92.     open powerup_menu } 
  93.     }
  94. itemDef {
  95.           name bar
  96.           style 0    
  97.     text "Orders"
  98.     textstyle 6
  99.     type 1
  100.           rect 426 16 213 40
  101.           textalign 1        
  102.           textalignx 106
  103.     textaligny 31        
  104.     textscale .35     
  105.           forecolor 1 1 1 1
  106.           border 0
  107.           bordercolor 0 0 0 0
  108.           visible 1 
  109.     action { play "sound/misc/kcaction.wav" ;
  110.     hide grphelptext ; 
  111.     hide grpbttn ; 
  112.     close powerup_menu ; 
  113.     close ordersHelp_menu ; 
  114.     open ordersHelp_menu } 
  115.     }
  116.  
  117. //    GAMETYPES BUTTONS    //
  118.  
  119. itemDef {
  120.           name ctfbttn
  121.     group grpbttn
  122.     type 1
  123.           style WINDOW_STYLE_FILLED
  124.     background "ui/assets/button_back.tga"
  125.     text "Capture the Flag"
  126.           rect 23 97 120 26
  127.           textalign 1        
  128.           textalignx 60
  129.     textaligny 20        
  130.     textscale .30    
  131.           forecolor 1 1 1 1
  132.     backcolor .37 .1 .1 1
  133.           visible 0
  134.     action { hide grphelptext ; show ctf ; play "sound/misc/kcaction.wav" } 
  135.     mouseEnter { setitemcolor ctfbttn backcolor .1 .37 .1 1 } 
  136.     mouseExit { setitemcolor ctfbttn backcolor .37 .1 .1 1 } 
  137.     }
  138.  
  139. itemDef {
  140.           name ctfbttn
  141.     group grpbttn
  142.     style WINDOW_STYLE_SHADER
  143.     background "ui/assets/framebutton.tga"
  144.      rect 23 97 120 26
  145.           visible 1 
  146.     decoration        
  147.         }
  148.  
  149. itemDef {
  150.           name ctfbttn
  151.     group grpbttn
  152.     style WINDOW_STYLE_SHADER
  153.     background "ui/assets/leftbutton.tga"
  154.           rect 11 97 13 26
  155.           visible 1 
  156.     decoration        
  157.         }
  158.  
  159. itemDef {
  160.           name ctfbttn
  161.     group grpbttn
  162.     style WINDOW_STYLE_SHADER
  163.     background "ui/assets/rightbutton.tga"
  164.           rect 142 97 13 26
  165.           visible 1 
  166.     decoration        
  167.         }
  168.  
  169. itemDef {
  170.           name oneflagbttn
  171.     group grpbttn
  172.     type 1
  173.           style WINDOW_STYLE_FILLED
  174.     background "ui/assets/button_back.tga"
  175.     text "One Flag"
  176.           rect 183 97 120 26
  177.           textalign 1        
  178.           textalignx 60
  179.     textaligny 20        
  180.     textscale .3     
  181.           forecolor 1 1 1 1
  182.     backcolor .37 .1 .1 1
  183.           visible 0
  184.     action { hide grphelptext ; show oneflag ; play "sound/misc/kcaction.wav" } 
  185.     mouseEnter { setitemcolor oneflagbttn backcolor .1 .37 .1 1 } 
  186.     mouseExit { setitemcolor oneflagbttn backcolor .37 .1 .1 1 } 
  187.     }
  188.  
  189. itemDef {
  190.           name oneflagbttn
  191.     group grpbttn
  192.     style WINDOW_STYLE_SHADER
  193.     background "ui/assets/framebutton.tga"
  194.      rect 183 97 120 26
  195.           visible 1 
  196.     decoration        
  197.         }
  198.  
  199. itemDef {
  200.           name oneflagbttn
  201.     group grpbttn
  202.     style WINDOW_STYLE_SHADER
  203.     background "ui/assets/leftbutton.tga"
  204.           rect 171 97 13 26
  205.           visible 1 
  206.     decoration        
  207.         }
  208.  
  209. itemDef {
  210.           name oneflagbttn
  211.     group grpbttn
  212.     style WINDOW_STYLE_SHADER
  213.     background "ui/assets/rightbutton.tga"
  214.           rect 302 97 13 26
  215.           visible 1 
  216.     decoration        
  217.         }
  218.  
  219. itemDef {
  220.           name overloadbttn
  221.     group grpbttn
  222.     type 1
  223.           style WINDOW_STYLE_FILLED
  224.     background "ui/assets/button_back.tga"
  225.     text "Overload"
  226.           rect 343 97 120 26
  227.           textalign 1        
  228.           textalignx 60
  229.     textaligny 20        
  230.     textscale .3     
  231.           forecolor 1 1 1 1
  232.     backcolor .37 .1 .1 1
  233.           visible 0
  234.     action { hide grphelptext ; show overload ; play "sound/misc/kcaction.wav"  } 
  235.     mouseEnter { setitemcolor overloadbttn backcolor .1 .37 .1 1 } 
  236.     mouseExit { setitemcolor overloadbttn backcolor .37 .1 .1 1 } 
  237.     }
  238.  
  239. itemDef {
  240.           name overloadbttn
  241.     group grpbttn
  242.     style WINDOW_STYLE_SHADER
  243.     background "ui/assets/framebutton.tga"
  244.      rect 343 97 120 26
  245.           visible 1 
  246.     decoration        
  247.         }
  248.  
  249. itemDef {
  250.           name overloadbttn
  251.     group grpbttn
  252.     style WINDOW_STYLE_SHADER
  253.     background "ui/assets/leftbutton.tga"
  254.           rect 331 97 13 26
  255.           visible 1 
  256.     decoration        
  257.         }
  258.  
  259. itemDef {
  260.           name overloadbttn
  261.     group grpbttn
  262.     style WINDOW_STYLE_SHADER
  263.     background "ui/assets/rightbutton.tga"
  264.           rect 462 97 13 26
  265.           visible 1 
  266.     decoration        
  267.         }
  268.     
  269.  
  270. itemDef {
  271.           name harvesterbttn
  272.     type 1
  273.     group grpbttn
  274.           style WINDOW_STYLE_FILLED
  275.     background "ui/assets/button_back.tga"
  276.     text "Harvester"
  277.           rect 503 97 120 26
  278.           textalign 1        
  279.           textalignx 60
  280.     textaligny 20        
  281.     textscale .3     
  282.           forecolor 1 1 1 1
  283.     backcolor .37 .1 .1 1
  284.           visible 0
  285.     action { hide grphelptext ; show harvester ; play "sound/misc/kcaction.wav"} 
  286.     mouseEnter { setitemcolor harvesterbttn backcolor .1 .37 .1 1 } 
  287.     mouseExit { setitemcolor harvesterbttn backcolor .37 .1 .1 1 } 
  288.     }
  289.  
  290. itemDef {
  291.           name harvesterbttn
  292.     group grpbttn
  293.     style WINDOW_STYLE_SHADER
  294.     background "ui/assets/framebutton.tga"
  295.      rect 503 97 120 26
  296.           visible 1 
  297.     decoration        
  298.         }
  299.  
  300. itemDef {
  301.           name harvesterbttn
  302.     group grpbttn
  303.     style WINDOW_STYLE_SHADER
  304.     background "ui/assets/leftbutton.tga"
  305.           rect 491 97 13 26
  306.           visible 1 
  307.     decoration        
  308.         }
  309.  
  310. itemDef {
  311.           name harvesterbttn
  312.     group grpbttn
  313.     style WINDOW_STYLE_SHADER
  314.     background "ui/assets/rightbutton.tga"
  315.           rect 622 97 13 26
  316.           visible 1 
  317.     decoration        
  318.         }
  319.  
  320.  
  321.  
  322. //    HELP TEXT    //
  323.  
  324. //    CTF    //
  325.  
  326.  
  327. itemDef {
  328.           name ctf
  329.     group grphelptext
  330.           style 0    
  331.     text "Capture the Flag"
  332.           rect 280 154 500 20
  333.           textalign 0        
  334.           textalignx 0
  335.     textaligny 17        
  336.     textscale .3     
  337.           forecolor 1 1 1 1
  338.           border 0
  339.           bordercolor 0 0 0 0
  340.           visible 0
  341.     decoration
  342.     }
  343. itemDef {
  344.     name ctf
  345.     group grphelptext
  346.           style 0    
  347.     wrapped
  348.     rect 280 184 500 20
  349.     text "To score a team point (often called a capture), the team \r"
  350.     "must invade the opposing team's base, run through (grab) \r"
  351.      "the other team's flag, and carry it back to their own flag.\r"
  352.      "For the capture to take place, the team's own flag must still \r"
  353.     "be in the base.  The flag carrier drops the flag when he or \r"
  354.      "she is fragged.  If the flag is not over void or death fog,\r"
  355.     "it stays in play. A player picks up a dropped flag when he \r"
  356.     "or she runs through it. This returns the player's own flag \r"
  357.     "to base.  If the player runs through the opposing team's flag,\r"
  358.     "the player picks it up and runs with it."
  359.           textalign 0        
  360.           textalignx 0
  361.     textaligny 17        
  362.     textscale .25   
  363.           forecolor 1 1 1 1
  364.           border 0
  365.           bordercolor 0 0 0 0
  366.           visible 0
  367.     decoration
  368.     }
  369.  
  370. itemDef {
  371.     name ctf
  372.     group grphelptext
  373.           style 5    
  374.     cinematic "ctf.RoQ"
  375.           rect 10 154 256 192
  376.           border 1
  377.           bordercolor .5 .5 .5 1
  378.           visible 0
  379.     decoration
  380.     }
  381.  
  382.  
  383.  
  384. // ONE FLAG CTF    //
  385.  
  386. itemDef {
  387.           name oneflag
  388.     group grphelptext
  389.           style 0    
  390.     text "One Flag Capture the Flag"
  391.           rect 280 154 500 20
  392.           textalign 0        
  393.           textalignx 0
  394.     textaligny 17        
  395.     textscale .3     
  396.           forecolor 1 1 1 1
  397.           border 0
  398.     decoration
  399.           bordercolor 0 0 0 0
  400.           visible 0
  401.     }
  402. itemDef {
  403.     name oneflag
  404.     group grphelptext
  405.           style 0
  406.     wrapped
  407.     text "The team must run through or grab the white flag at the \r"
  408.     "center of the arena and carry it to the opposing team's \r"
  409.     "flag. A team point, called a capture, is scored each time \r"
  410.     "a player successfully carries the flag to the opposing base. \r"
  411.     "The flag carrier drops the flag when he or she is fragged. \r"
  412.        "If the flag is not over a void or death fog, it stays in play \r"
  413.     "and may be picked up by a player from either team. A flag \r"
  414.     "dropped over a void or death fog returns to the center of \r" 
  415.     "the arena."
  416.     rect 280 184 500 20
  417.           textalign 0        
  418.           textalignx 0
  419.     textaligny 17        
  420.     textscale .25     
  421.           forecolor 1 1 1 1
  422.           border 0
  423.           bordercolor 0 0 0 0
  424.           visible 0
  425.     decoration
  426.     }
  427. itemDef {
  428.     name oneflag
  429.     group grphelptext
  430.           style 5    
  431.     cinematic "oneflag.RoQ"
  432.     rect 10 154 256 192
  433.           border 1
  434.           bordercolor .5 .5 .5 11
  435.           visible 0
  436.     decoration
  437.     }
  438.  
  439.  
  440. //    OVERLOAD    //
  441.  
  442. itemDef {
  443.           name overload
  444.     group grphelptext
  445.           style 0    
  446.     text "Overload"
  447.           rect 280 154 500 20
  448.           textalign 0        
  449.           textalignx 0
  450.     textaligny 17        
  451.     textscale .3     
  452.           forecolor 1 1 1 1
  453.           border 0
  454.           bordercolor 0 0 0 0
  455.     decoration
  456.           visible 0
  457.     }
  458. itemDef {
  459.     name overload
  460.     group grphelptext
  461.           style 0
  462.     wrapped    
  463.     text "To score a team point, the players must invade \r"
  464.         "their opponent's base and attack the skull portion of \r"
  465.        "the goal obelisk until it explodes. It slowly turns red \r"
  466.     "as the attacker chews through its 2500 points of damage. \r"
  467.     "The skull constantly regenerates at a rate of 15 hit \r"
  468.     "points a second."
  469.     rect 280 184 500 20
  470.           textalign 0        
  471.           textalignx 0
  472.     textaligny 17        
  473.     textscale .25     
  474.           forecolor 1 1 1 1
  475.           border 0
  476.           bordercolor 0 0 0 0
  477.           visible 0
  478.     decoration
  479.     }
  480. itemDef {
  481.     name overload
  482.     group grphelptext
  483.           style 5    
  484.     cinematic "overload.RoQ"
  485.           rect 10 154 256 192
  486.           border 1
  487.           bordercolor .5 .5 .5 1
  488.           visible 0
  489.     decoration
  490.     }
  491.  
  492.  
  493. //    HARVESTER    //
  494. itemDef {
  495.           name harvester
  496.     group grphelptext
  497.           style 0    
  498.     text "Harvester"
  499.           rect 280 154 500 20
  500.           textalign 0        
  501.           textalignx 0
  502.     textaligny 17        
  503.     textscale .3     
  504.           forecolor 1 1 1 1
  505.           border 0
  506.           bordercolor 0 0 0 0
  507.           visible 0
  508.     decoration
  509.     }
  510. itemDef {
  511.     name harvester
  512.     group grphelptext
  513.           style 0    
  514.     wrapped
  515.     text "To score team points, the team must frag opposing team \r"
  516.     "members. Each time a player on either team is fragged, a \r"
  517.     "crystal skull of their team color pops out of the skull \r"
  518.     "generator in the center of the arena. Players harvest skulls \r"
  519.     "of the opposing team's color by running through them.  Skulls \r"
  520.     "of their own team's color are removed from play in the same  \r"
  521.     "manner.  Players must carry the skulls to the goal, a skull \r"
  522.     "receptacle in the opposing team's base.  When a player is \r"
  523.     "fragged, any carried skulls are lost."
  524.           rect 280 184 500 20
  525.           textalign 0        
  526.           textalignx 0
  527.     textaligny 17        
  528.     textscale .25     
  529.           forecolor 1 1 1 1
  530.           border 0
  531.           bordercolor 0 0 0 0
  532.           visible 0
  533.     decoration
  534.     }
  535. itemDef {
  536.     name harvester
  537.     group grphelptext
  538.           style 5    
  539.     cinematic "harvester.RoQ"
  540.         rect 10 154 256 192
  541.           border 1
  542.           bordercolor .5 .5 .5 1
  543.           visible 0
  544.     decoration
  545.     }
  546.  
  547.  
  548.     
  549.  
  550. // BACK BAR    //
  551.  
  552.  
  553.   itemDef {
  554.       name gotobar
  555.       style 2
  556.       rect 0 430 640 30 
  557.       textscale 0.4
  558.       textalign 0                // center
  559.       textalignx 60        // x alignment point for text
  560.                             // use it to offset left/right text from the edge 
  561.                             // or to center the text on a different point
  562.       textaligny 21        
  563.       style 2
  564.       border 4
  565.       bordercolor 0.5 0.5 0.5 0.5
  566.       bordersize 2
  567.       backcolor 0 0 .75 0.5
  568.       visible 1 
  569.       mouseEnter { setcolor backcolor .75 0 0 .5 }
  570.       mouseExit { setcolor backcolor 0 0 .75 .5 }
  571.       decoration 
  572.     }
  573.  
  574.     itemDef {
  575.           name back
  576.     style 3
  577.           background "ui/assets/backarrow.tga"
  578.     rect 16 424 50 50 
  579.           visible 1 
  580.           action { close help_menu ; open main }
  581.     mouseEnter { hide back ; show back_alt ; fadein message_back }
  582.         }
  583.  
  584. itemDef {
  585.           name back_alt
  586.           style WINDOW_STYLE_SHADER
  587.     background "ui/assets/backarrow_alt.tga"
  588.     rect 14 422 54 54 
  589.           backcolor 0 0 0 0
  590.           forecolor 1 1 1 1
  591.           visible 0
  592.     type ITEM_TYPE_BUTTON
  593.           mouseExit { hide back_alt ; show back ; fadeout message_back }      
  594.           action { close help_menu ; 
  595.     close powerup_menu ; 
  596.     close ordersHelp_menu ;
  597.     //play "sound/misc/tim_pump.wav" ;  
  598.     open main }      
  599.     }
  600.  
  601.  
  602. //    MESSAGES    //
  603.  
  604. itemDef {
  605.     name message_back
  606.     style 0 
  607.     rect 320 430 128 30
  608.     textstyle 1
  609.     textalign 1
  610.     textalignx 0
  611.     textaligny 25
  612.     textscale .416
  613.     text "Exit to Main Menu"
  614.     forecolor 1 1 1 1
  615.     decoration 
  616.     visible 0
  617.     }
  618.  
  619. itemDef {
  620.     name message_help
  621.     style 0 
  622.     rect 320 430 128 30
  623.     textalign 1
  624.     textstyle 1
  625.     textalignx 0
  626.     textaligny 25
  627.     textscale .416
  628.     text "Select for Description"
  629.     forecolor 1 1 1 1
  630.     decoration 
  631.     visible 0
  632.     }
  633.  
  634. itemDef {
  635.           name fadebox
  636.           style WINDOW_STYLE_FILLED
  637.      background "ui/assets/fadebox.tga"
  638.     forecolor 0 0 0 1
  639.     backcolor 0 0 0 1
  640.     rect 0 0 640 480
  641.           visible 1 
  642.     decoration
  643.         }
  644.  
  645.  
  646.  
  647.  
  648. }
  649.  
  650.  
  651.  
  652. }
  653.  
  654.  
  655.  
  656.